package com.hyq.memorandum.currency;
/**
* @ClassName: Client 
* @Description: 客户端 
* @author Janus
 */
public class Client {
	public static void main(String[] args) {
		//发起人
		Originator o = new Originator();
		//定义备忘角色
		Caretaker ca = new Caretaker();
		//创建备忘录
		ca.setMemento(o.createMemento());
		//恢复备忘录
		o.restoreMemento(ca.getMemento());
	}
}
